package com.situ.day3.homework;

public class Rect {
	private int width;
	private int height;

	public Rect() {
		width = 1;
		height = 1;
	}
	
	public Rect(int width) {
		this.width = width;
		this.height = width;
	}

	public Rect(int width, int height) {
		this.width = width;
		this.height = height;
	}

	public int zhouChang() {
		return (width + height) * 2;
	}
	
	public int  mianji() {
		return width * height;
	}
	
	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

}
